package com.xuef.base;

/**
 * 包装一些常量
 * Created by moveb on 2018/5/21.
 */
public class Cons {

    // 用户注册时默认的头像url(Null)
    public static final String DEFAULT_AVATAR =
            "http://p92lxdjid.bkt.clouddn.com/eaadeb1f-10b2-46e1-8c23-fbcb379625ab.jpg";
    /**
     * 实体类型：博客、评论、用户
     */
    public interface ENTITY_TYPE{
        int ENTITY_BLOG = 1;
        int ENTITY_COMMENT = 2;
        int ENTITY_USER = 3;
    }

    /**
     * 用户角色类型
     */
    public enum ROLE{
        USER(1, "ROLE_USER"),
        ADMIN(0, "ROLE_ADMIN");

        private int roleId;
        private  String roleName;
        ROLE(int id, String roleName){
            this.roleId = id;
            this.roleName = roleName;
        }

        public int getRoleId() {
            return roleId;
        }

        public void setRoleId(int roleId) {
            this.roleId = roleId;
        }

        public String getRoleName() {
            return roleName;
        }

        public void setRoleName(String roleName) {
            this.roleName = roleName;
        }
    }
}
